package top.milkbox.domain.base;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import top.milkbox.domain.PostComment;
import top.milkbox.domain.User;

import java.util.List;

@Data
public class PostBase {
    @TableField(exist = false)
    private List<String> imageList;

    @TableField(exist = false)
    private User user;

    // 存放帖子的评论信息
    @TableField(exist = false)
    private List<PostComment> postCommentList;

    @TableField(exist = false)
    private Integer likeCount = 0; // 点赞数量

    @TableField(exist = false)
    private Boolean isLike; // 当前用户是否点赞

    @TableField(exist = false)
    private Integer collectionCount = 0; // 收藏数量

    @TableField(exist = false)
    private Boolean isCollection; // 当前用户是否收藏

    @TableField(exist = false)
    private Integer commentCount = 0; // 当前贴的评论数量
}
